package model

const (
	AttachChipLv        = "lv"
	AttachChipTime      = "time"
	AttachChipMainAttr  = "mainAttr"
	AttachChipOtherAttr = "otherAttr"
	AttachChipExtraAttr = "extraAttr"
)

//type Chip struct {
//	MainAttr  map[int32]*ChipAttr      `json:"mainAttr,omitempty" bson:"mainAttr"`   //主属性
//	OtherAttr map[int32]*ChipOtherAttr `json:"otherAttr,omitempty" bson:"otherAttr"` //副属性
//	ExtraAttr map[int32]*ChipExtraAttr `json:"extraAttr,omitempty" bson:"extraAttr"` // 特殊属性
//	//Time     int64  `json:"time" bson:"time"`  //???????
//}

type ChipAttr struct {
	Id    int32 `json:"ID,omitempty" bson:"id"`
	Value int32 `json:"Value,omitempty" bson:"val"`
}
type ChipOtherAttr struct {
	ChipAttr
	Lv     int32 `json:"lv,omitempty" bson:"lv"`
	Weight int32 `json:"Weight,omitempty" bson:"Weight"`
}

type ChipExtraAttr struct {
	ChipAttr
	Data []int32 `json:"data,omitempty" bson:"data"`
}
